home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / plugindialog_base.py < prev    next >
Encoding:
Python Source  |  2009-04-14  |  7.1 KB  |  144 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui4/plugindialog_base.ui'
  4. #
  5. # Created: Tue Feb 17 11:36:13 2009
  6. #      by: PyQt4 UI code generator 4.3.3
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. class Ui_Dialog(object):
  13.     def setupUi(self, Dialog):
  14.         Dialog.setObjectName("Dialog")
  15.         Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,700,500).size()).expandedTo(Dialog.minimumSizeHint()))
  16.  
  17.         self.gridlayout = QtGui.QGridLayout(Dialog)
  18.         self.gridlayout.setObjectName("gridlayout")
  19.  
  20.         self.StackedWidget = QtGui.QStackedWidget(Dialog)
  21.         self.StackedWidget.setObjectName("StackedWidget")
  22.  
  23.         self.page = QtGui.QWidget()
  24.         self.page.setObjectName("page")
  25.  
  26.         self.gridlayout1 = QtGui.QGridLayout(self.page)
  27.         self.gridlayout1.setObjectName("gridlayout1")
  28.  
  29.         self.label = QtGui.QLabel(self.page)
  30.  
  31.         font = QtGui.QFont()
  32.         font.setPointSize(16)
  33.         self.label.setFont(font)
  34.         self.label.setObjectName("label")
  35.         self.gridlayout1.addWidget(self.label,0,0,1,1)
  36.  
  37.         self.line = QtGui.QFrame(self.page)
  38.         self.line.setFrameShape(QtGui.QFrame.HLine)
  39.         self.line.setFrameShadow(QtGui.QFrame.Sunken)
  40.         self.line.setObjectName("line")
  41.         self.gridlayout1.addWidget(self.line,1,0,1,2)
  42.  
  43.         self.TitleLabel = QtGui.QLabel(self.page)
  44.         self.TitleLabel.setWordWrap(True)
  45.         self.TitleLabel.setObjectName("TitleLabel")
  46.         self.gridlayout1.addWidget(self.TitleLabel,2,0,1,2)
  47.  
  48.         spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  49.         self.gridlayout1.addItem(spacerItem,3,0,1,1)
  50.  
  51.         self.groupBox = QtGui.QGroupBox(self.page)
  52.         self.groupBox.setObjectName("groupBox")
  53.  
  54.         self.gridlayout2 = QtGui.QGridLayout(self.groupBox)
  55.         self.gridlayout2.setObjectName("gridlayout2")
  56.  
  57.         self.DownloadRadioButton = QtGui.QRadioButton(self.groupBox)
  58.         self.DownloadRadioButton.setChecked(True)
  59.         self.DownloadRadioButton.setObjectName("DownloadRadioButton")
  60.         self.gridlayout2.addWidget(self.DownloadRadioButton,0,0,1,2)
  61.  
  62.         self.CopyRadioButton = QtGui.QRadioButton(self.groupBox)
  63.         self.CopyRadioButton.setEnabled(True)
  64.         self.CopyRadioButton.setObjectName("CopyRadioButton")
  65.         self.gridlayout2.addWidget(self.CopyRadioButton,1,0,1,2)
  66.  
  67.         spacerItem1 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Preferred,QtGui.QSizePolicy.Minimum)
  68.         self.gridlayout2.addItem(spacerItem1,2,0,1,1)
  69.  
  70.         self.hboxlayout = QtGui.QHBoxLayout()
  71.         self.hboxlayout.setObjectName("hboxlayout")
  72.  
  73.         self.PathLineEdit = QtGui.QLineEdit(self.groupBox)
  74.         self.PathLineEdit.setEnabled(False)
  75.  
  76.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,QtGui.QSizePolicy.Fixed)
  77.         sizePolicy.setHorizontalStretch(0)
  78.         sizePolicy.setVerticalStretch(0)
  79.         sizePolicy.setHeightForWidth(self.PathLineEdit.sizePolicy().hasHeightForWidth())
  80.         self.PathLineEdit.setSizePolicy(sizePolicy)
  81.         self.PathLineEdit.setObjectName("PathLineEdit")
  82.         self.hboxlayout.addWidget(self.PathLineEdit)
  83.  
  84.         self.BrowseToolButton = QtGui.QToolButton(self.groupBox)
  85.         self.BrowseToolButton.setEnabled(False)
  86.         self.BrowseToolButton.setObjectName("BrowseToolButton")
  87.         self.hboxlayout.addWidget(self.BrowseToolButton)
  88.         self.gridlayout2.addLayout(self.hboxlayout,2,1,1,1)
  89.  
  90.         self.SkipRadioButton = QtGui.QRadioButton(self.groupBox)
  91.         self.SkipRadioButton.setObjectName("SkipRadioButton")
  92.         self.gridlayout2.addWidget(self.SkipRadioButton,3,0,1,2)
  93.         self.gridlayout1.addWidget(self.groupBox,4,0,1,2)
  94.  
  95.         spacerItem2 = QtGui.QSpacerItem(278,51,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  96.         self.gridlayout1.addItem(spacerItem2,5,1,1,1)
  97.         self.StackedWidget.addWidget(self.page)
  98.         self.gridlayout.addWidget(self.StackedWidget,0,0,1,5)
  99.  
  100.         self.line_2 = QtGui.QFrame(Dialog)
  101.         self.line_2.setFrameShape(QtGui.QFrame.HLine)
  102.         self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
  103.         self.line_2.setObjectName("line_2")
  104.         self.gridlayout.addWidget(self.line_2,1,0,1,5)
  105.  
  106.         self.StepText = QtGui.QLabel(Dialog)
  107.         self.StepText.setObjectName("StepText")
  108.         self.gridlayout.addWidget(self.StepText,2,0,1,1)
  109.  
  110.         spacerItem3 = QtGui.QSpacerItem(161,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  111.         self.gridlayout.addItem(spacerItem3,2,1,1,1)
  112.  
  113.         self.BackButton = QtGui.QPushButton(Dialog)
  114.         self.BackButton.setEnabled(False)
  115.         self.BackButton.setObjectName("BackButton")
  116.         self.gridlayout.addWidget(self.BackButton,2,2,1,1)
  117.  
  118.         self.NextButton = QtGui.QPushButton(Dialog)
  119.         self.NextButton.setObjectName("NextButton")
  120.         self.gridlayout.addWidget(self.NextButton,2,3,1,1)
  121.  
  122.         self.CancelButton = QtGui.QPushButton(Dialog)
  123.         self.CancelButton.setObjectName("CancelButton")
  124.         self.gridlayout.addWidget(self.CancelButton,2,4,1,1)
  125.  
  126.         self.retranslateUi(Dialog)
  127.         self.StackedWidget.setCurrentIndex(0)
  128.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  129.  
  130.     def retranslateUi(self, Dialog):
  131.         Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "HP Device Manager - Plug-in Installer", None, QtGui.QApplication.UnicodeUTF8))
  132.         self.label.setText(QtGui.QApplication.translate("Dialog", "Driver Plug-in Installation", None, QtGui.QApplication.UnicodeUTF8))
  133.         self.TitleLabel.setText(QtGui.QApplication.translate("Dialog", "You may download the plug-in directly from an HP authorized server, or, if you already have a local copy of the plug-in file, you can specify a path to the file.", None, QtGui.QApplication.UnicodeUTF8))
  134.         self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", "Plug-in Installation Choice", None, QtGui.QApplication.UnicodeUTF8))
  135.         self.DownloadRadioButton.setText(QtGui.QApplication.translate("Dialog", "Download and install the plug-in from an HP authorized server (recommended)", None, QtGui.QApplication.UnicodeUTF8))
  136.         self.CopyRadioButton.setText(QtGui.QApplication.translate("Dialog", "Select and install an existing local copy of the plug-in file (advanced):", None, QtGui.QApplication.UnicodeUTF8))
  137.         self.BrowseToolButton.setToolTip(QtGui.QApplication.translate("Dialog", "Open a local copy of the plug-in file", None, QtGui.QApplication.UnicodeUTF8))
  138.         self.SkipRadioButton.setText(QtGui.QApplication.translate("Dialog", "Skip installation of the plug-in (not recommended)", None, QtGui.QApplication.UnicodeUTF8))
  139.         self.StepText.setText(QtGui.QApplication.translate("Dialog", "Step %d of %d", None, QtGui.QApplication.UnicodeUTF8))
  140.         self.BackButton.setText(QtGui.QApplication.translate("Dialog", "< Back", None, QtGui.QApplication.UnicodeUTF8))
  141.         self.NextButton.setText(QtGui.QApplication.translate("Dialog", "Next >", None, QtGui.QApplication.UnicodeUTF8))
  142.         self.CancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
  143.  
  144.